// pages/successtip/successtip.js
//获取应用实例
var app = getApp()
Page({
  data: {
  
  },
  onLoad: function (e) {
    // var money = e.money;
    var that = this;
    setTimeout(function(){
      app.requestAd(that);
      that.orderDetail();
    },1000)
  },
  backIndex:function(){
    app.backHome();
  },
  orderDetail:function(){
    var that = this;
    wx.showToast({
      title: '加载中',
      icon: 'loading',
      mask: true,
      duration: 10000
    });
    wx.request({
      url: app.globalData.requestUrl,
      data: {
        map: 'applet_cash_order'
      },
      success: function (res) {
        if (res.data.ec == 200) {
          console.log(res.data.data);
          console.log(res.data.data);
          that.setData({
            orderDetail: res.data.data
          })
        } else {
          wx.showModal({
            title: '提示',
            content: res.data.em,
            showCancel: false
          });
        }
      },
      complete: function () {
        wx.hideToast();
        wx.stopPullDownRefresh();
      }
    });
  }
})